package org.edu.modules.stu.base.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.edu.common.base.BaseEntity;
import org.hibernate.validator.constraints.Length;

import java.io.Serializable;

/**
 * entity-
 */
@TableName("ve_stu_file")
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="对象", description="ve_stu_file")
public class VeStuFile  implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    @TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "id")
    private Integer id;

    @TableField
    @ApiModelProperty(value = "扩展名")
    @Length(max = 255)
        private String ext;

    @TableField
    @ApiModelProperty(value = "名称")
    @Length(max = 255)
        private String name;

    @TableField
    @ApiModelProperty(value = "文件名")
    @Length(max = 255)
        private String fileName;

    @TableField
    @ApiModelProperty(value = "路径")
    @Length(max = 255)
        private String path;

    @TableField
    @ApiModelProperty(value = "保存路径 0  本地 1 阿里云")
        private Integer saveType;

    @TableField
    @ApiModelProperty(value = "业务ID")
    @Length(max = 255)
        private String serviceId;

    @TableField
    @ApiModelProperty(value = "业务类型")
    @Length(max = 255)
        private String serviceType;
}
